@import './base.css';

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  font-weight: normal;
}

a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
  }
}

@media (min-width: 1024px) {
  body {
    display: flex;
    place-items: center;
  }

  #app {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 2rem;
  }
}

/* 全局样式 */
:root {
  --el-color-primary: #409EFF;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  font-size: 14px;
}

/* 表格样式优化 */
.el-table th {
  background-color: #f5f7fa !important;
}

.el-table--striped .el-table__body tr.el-table__row--striped td {
  background-color: #fafafa;
}

/* 按钮样式 */
.el-button + .el-button {
  margin-left: 10px;
}

/* 分页样式 */
.el-pagination {
  margin-top: 20px;
  text-align: right;
}

/* 卡片样式 */
.el-card {
  margin-bottom: 20px;
  border-radius: 4px;
}

/* 弹窗样式 */
.el-dialog__header {
  padding: 20px;
  border-bottom: 1px solid #EBEEF5;
}

.el-dialog__footer {
  padding: 15px 20px;
  border-top: 1px solid #EBEEF5;
}

/* 表单样式 */
.el-form-item__label {
  font-weight: 500;
}

/* 溯源管理特定样式 */
.traceability-container .score-high {
  color: #67C23A;
}

.traceability-container .score-medium {
  color: #E6A23C;
}

.traceability-container .score-low {
  color: #F56C6C;
}

/* 通用布局样式 */
.content-container {
  padding: 20px;
  background-color: #fff;
  border-radius: 4px;
}

/* 页头样式 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-title {
  font-size: 18px;
  font-weight: bold;
}

/* 搜索区域样式 */
.search-panel {
  padding: 18px;
  background-color: #f5f7fa;
  border-radius: 4px;
  margin-bottom: 20px;
}
